package com.wmh.baseservice.operationaid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 运营助手-功能参数模板
 * @author 谢骏
 * @TableName operation_aid_feature_param_template
 * @createDate 2023-07-03 14:29:15
 */
@Data
@Accessors(chain = true)
@TableName("operation_aid_feature_param_template")
public class FeatureParamTemplate implements Serializable {

    /**
     * 主键
     */
    @TableId(value = COL_ID ,type = IdType.AUTO)
    private Long id;

    /**
     * 模板名称
     */
    @TableField(value = COL_NAME)
    private String name;

    /**
     * 管理员id
     */
    @TableField(value = COL_AD_ID)
    private Long adId;

    /**
     * 模板类型 : 1生成标题\2补单计划\3追加到直通车
     */
    @TableField(value = COL_TYPE)
    private Integer type;

    /**
     * 模板参数
     */
    @TableField(value = COL_PARAMS)
    private String params;

    /**
     * 创建时间
     */
    @TableField(value = COL_CREATE_TIME)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = COL_UPDATE_TIME)
    private LocalDateTime updateTime;

    /**
     * 删除 0 未删除 1已删除
     */
    @TableField(value = COL_DELETED)
    private Integer deleted;


    /**
     * 主键
     */
    public static final String COL_ID = "id";

    /**
     * 模板名称
     */
    public static final String COL_NAME = "name";

    /**
     * 管理员id
     */
    public static final String COL_AD_ID = "ad_id";

    /**
     * 模板类型 : 1生成标题\2补单计划\3追加到直通车
     */
    public static final String COL_TYPE = "type";

    /**
     * 模板参数
     */
    public static final String COL_PARAMS = "params";

    /**
     * 创建时间
     */
    public static final String COL_CREATE_TIME = "create_time";

    /**
     * 修改时间
     */
    public static final String COL_UPDATE_TIME = "update_time";

    /**
     * 删除 0 未删除 1已删除
     */
    public static final String COL_DELETED = "deleted";

    @TableField(exist = false)
    static final long serialVersionUID = 1L;
}
